package cn.alexy.dbbench.server.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "dbb_pi")
public class Pi {
	
	private int id;
	private String scol;
	private long icol;
	private double dcol;
	private Date dtcreat;
	
	public Pi(){		
	}

	public Pi(int id){
		this.id = id;
	}
	
	@Id
//	@NotBlank
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getScol() {
		return scol;
	}
	public void setScol(String scol) {
		this.scol = scol;
	}
	
	public long getIcol() {
		return icol;
	}
	public void setIcol(long icol) {
		this.icol = icol;
	}
	
	public double getDcol() {
		return dcol;
	}
	public void setDcol(double dcol) {
		this.dcol = dcol;
	}
	
	public Date getDtcreat() {
		return dtcreat;
	}
	public void setDtcreat(Date dtcreat) {
		this.dtcreat = dtcreat;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
